package toro.entity;

public class EmailAccount extends Entity{
	
	private String protocol;
	private String incomingServer;
	private String outgoingServer;
	private ConnectionEncryptionType encryptionType = ConnectionEncryptionType.NONE;
	private int incomingPort;
	private int outgoingPort;
	private String userName;
	private char[] password;
	
	public EmailAccount()
	{
		
	}
	public EmailAccount(String userName, char[] password, String protocol,
			ConnectionEncryptionType encryptionType, String incomingServer,
			int incomingPort, String outgoingServer, int outgoingPort)
	{
		this.userName = userName;
		this.password = password;
		this.protocol = protocol;
		this.encryptionType = encryptionType;
		this.incomingServer = incomingServer;
		this.incomingPort = incomingPort;
		this.outgoingServer = outgoingServer;
		this.outgoingPort = outgoingPort;
		
		
	}
	public String getProtocol()
	{
		return protocol;
	}
	public void setProtocol(String protocol)
	{
		this.protocol = protocol;
	}
	public String getIncomingServer()
	{
		return incomingServer;
	}
	public void setIncomingServer(String incomingServer)
	{
		this.incomingServer = incomingServer;
	}
	public String getOutgoingServer()
	{
		return outgoingServer;
	}
	public void setOutgoingServer(String outgoingServer)
	{
		this.outgoingServer = outgoingServer;
	}
	public ConnectionEncryptionType getEncryptionType()
	{
		return encryptionType;
	}
	public void setEncryptionType(ConnectionEncryptionType encryptionType)
	{
		this.encryptionType = encryptionType;
	}
	public int getIncomingPort()
	{
		return incomingPort;
	}
	public void setIncomingPort(int incomingPort)
	{
		this.incomingPort = incomingPort;
	}
	public int getOutgoingPort()
	{
		return outgoingPort;
	}
	public void setOutgoingPort(int outgoingPort)
	{
		this.outgoingPort = outgoingPort;
	}
	public String getUserName()
	{
		return userName;
	}
	public void setUserName(String userName)
	{
		this.userName = userName;
	}
	public char[] getPassword()
	{
		return password;
	}
	public void setPassword(char[] password)
	{
		this.password = password;
	}
	
	
}
